#-*- coding=utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')

from  PyQt4 import QtGui

class Icon(QtGui.QWidget):
	"""docstring for Icon"""
	def __init__(self, parent = None):
		QtGui.QWidget.__init__(self)
		self.setGeometry(300,300,350,250)
		self.setWindowTitle(u'frist setWindowTitle')
		self.setWindowIcon(QtGui.QIcon('main.ioc'))
app = QtGui.QApplication(sys.argv)
icon = Icon()
icon.show()
sys.exit(app.exec_())